import Vue from 'vue'
import moment from 'moment'

Vue.filter('date', (value: number, format = 'YYYY-MM-DD HH:mm') => {
  if (!value) return ''
  return moment(value).format(format)
})
